package cn.wit.sst.domain;

import java.io.Serializable;

public class Student implements Serializable {
    private Long id;

    private String name;

    private Long sno;

    /**专业id， majorId*/
    private Long mid;

    private String major;

    private Short year;

    private Byte clazz;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getSno() {
        return sno;
    }

    public void setSno(Long sno) {
        this.sno = sno;
    }

    public Long getMid() {
        return mid;
    }

    public void setMid(Long mid) {
        this.mid = mid;
    }

    public Short getYear() {
        return year;
    }

    public void setYear(Short year) {
        this.year = year;
    }

    public Byte getClazz() {
        return clazz;
    }

    public void setClazz(Byte clazz) {
        this.clazz = clazz;
    }

	public String getMajor() {
		return major;
	}

	public void setMajor(String major) {
		this.major = major;
	}

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", sno=").append(sno);
        sb.append(", mid=").append(mid);
        sb.append(", major=").append(major);
        sb.append(", year=").append(year);
        sb.append(", clazz=").append(clazz);
        sb.append("]");
        return sb.toString();
    }
}